import request from "@/request";
import {POST, GET} from '@/constant'

export function imBindUser(data) {
    return request({
        url: "/gateway_worker/bindUid",
        data,
        method: POST,
    })
}


export function getMessageList(data) {
    return request({
        url:'/push/list',
        data,
        method:POST,
    })
}

export function makeAsRead(data) {
    return request({
        url:"/push/yuedupush",
        data,
        method:POST,
    })
}


export function getUnReadCount() {
    return request({
        url:'/push/totalnum',
        method:POST,
    })
}

export function _sendMsg(data) {
    return request({
        url:'/push/index',
        data,
        method:POST,
    })
}
